#pragma once

#include "Types.h"
#include "tinyxml.h"

class Illumination
{
public:

	Illumination(Rgba amb, Rgba bg, bool ds, bool l) : ambient(amb), background(bg), doublesided(ds), local(l) {}

	virtual ~Illumination(void)	{}

	// Atributes
	Rgba ambient, background;
	bool doublesided;
	bool local;

	// Handle methods
	static bool handleProperties(TiXmlElement *element, int &db, int &local);
	static bool handleComponents(TiXmlElement *element, sRgba &amb);
};

